package com.example.sxmall.dao.mapper;

import com.example.sxmall.dao.pojo.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrdersMapper {
    /**
     * 查看订单详情列表
     * @return
     */
    public List<Orders> listOrders();

    /**
     * 根据ID查询
     * @param oid
     * @return
     */
    public Orders findOrdersById(@Param("oid") Integer oid);

    /**
     * 添加
     * @param orders
     * @return
     */
    public int insertOrders(@Param("orders") Orders orders);

    /**
     * 删除
     * @param oid
     * @return
     */
    public int deleteOrders(@Param("oid") int oid);

    /**
     * 动态修改
     * @param orders
     * @return
     */
    public int updateOrders(@Param("orders") Orders orders);
}
